<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <title>01事件绑定入门案例</title>
</head>

<body>
  <!-- 测试按钮标签 -->
  <input type="button" onclick="fun1()" value="点我试试" />



</body>

<script type="text/javascript">
  // 按钮点击后要执行的功能
  function fun1() {
    alert("还钱");
  }

</script>

</html>